package cn.kgc.kgde.bookstore.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author myt
 * @since 2022-05-31
 */
@TableName("goods")
@ApiModel(value = "Goods对象", description = "")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "goodsId", type = IdType.AUTO)
    private Long goodsId;

    private String goodsName;

    private Long cateId;

    private String goodsDesc;

    private String goodsPic;

    private Double goodsPrice;

    private LocalDateTime goodsCreateTime;

    private Integer goodsSum;

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }
    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }
    public Long getCateId() {
        return cateId;
    }

    public void setCateId(Long cateId) {
        this.cateId = cateId;
    }
    public String getGoodsDesc() {
        return goodsDesc;
    }

    public void setGoodsDesc(String goodsDesc) {
        this.goodsDesc = goodsDesc;
    }
    public String getGoodsPic() {
        return goodsPic;
    }

    public void setGoodsPic(String goodsPic) {
        this.goodsPic = goodsPic;
    }
    public Double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(Double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }
    public LocalDateTime getGoodsCreateTime() {
        return goodsCreateTime;
    }

    public void setGoodsCreateTime(LocalDateTime goodsCreateTime) {
        this.goodsCreateTime = goodsCreateTime;
    }
    public Integer getGoodsSum() {
        return goodsSum;
    }

    public void setGoodsSum(Integer goodsSum) {
        this.goodsSum = goodsSum;
    }

    @Override
    public String toString() {
        return "Goods{" +
            "goodsId=" + goodsId +
            ", goodsName=" + goodsName +
            ", cateId=" + cateId +
            ", goodsDesc=" + goodsDesc +
            ", goodsPic=" + goodsPic +
            ", goodsPrice=" + goodsPrice +
            ", goodsCreateTime=" + goodsCreateTime +
            ", goodsSum=" + goodsSum +
        "}";
    }
}
